<div>
<?php

$javascript->link('sociall.account', false);


if($warning != 'warning_upgrade'){
	echo $form->create('Account', array('class' => 'nForm ws'));
?>
	<fieldset>
 		<legend><?php __('Add Account');?></legend>
	<?php
	//debug($communities);
		print '<label for="AccountCommunityId">' . __('Community', true) . '</label>';
		echo $form->select('community_id', $communities, null, null, false);
		print '<div id="access_data">';
		echo $form->input('username');
		echo $form->input('pass', array('type' => 'password'));
		print '</div>';
	?>
	</fieldset>
<?php
//print $html->link(__('Click here and follow facebook instructions to allow SociALL', true), $facebookGetPermissionUrl);
echo $form->end('Submit');
?>
</div>
<div class="actions">
<?php
}
else{
	$this->pageTitle = __('SociALL', true) . ' ::: ' . __('Upgrade your account', true);

__('You have to upgrade your SociALL account if you want to add a new account.');
?>
	<h1><?php __('Upgrade your SociALL account'); ?></h1>

	<h2><?php __('From free user to premium user'); ?></h2>
	<p>
		<?php
		__('Free users could register accounts in the same community or different ones, but free users could have maximum 3 accounts. ');
		__('Premium users could have 12 different accounts. ');
		printf(__('If you want to become a premium user please <a href="%s">send us €20</a> as yearly membership fee.', true), 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6312434');
		?>
	</p>

	<h2><?php __('From free user to business user'); ?></h2>
	<p>
		<?php
		__('Business users could have 100 different accounts. ');
		printf(__('If you want to become a business user please <a href="%s">send us €50</a> as yearly membership fee.', true), 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6312582');
		?>
	</p>

	<h2><?php __('From premium user to business user'); ?></h2>
	<p>
		<?php
		__('Business users could have 100 different accounts. ');
		printf(__('If you want to become a business user please <a href="%s">send us €50</a> as yearly membership fee.', true), 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6312582');
		?>
	</p>
<?php
}
?>
</div>